/**************************   供应商接口   ***************************/
import { http } from "@/uni-sub-base/service/request.js"
import configs from "@/config/config.js"
let serviceName = configs.baseUrl + "Supplier/"

// 获取供应商分页
export function GetSupplierOfferPage(data) {
    return http.post({
        url: serviceName + "GetSupplierOfferPage",
        data: data,
    })
}

// 获取供应商商品列表
export function GetSupplierProductForSku(data) {
    return http.post({
        url: serviceName + "GetSupplierProductForSku",
        data: data,
    })
}

// 申请供应商授权
export function ApplySupplierOffter(supplierId) {
    return http.post({
        url: serviceName + "ApplySupplierOffter?supplierId=" + supplierId,
    })
}

// 供应商详情
export function GetSupplier(id) {
    return http.get({
        url: serviceName + "GetSupplier?id=" + id,
    })
}

// 供应商
export function GetSupplierOffer(supplierId) {
    return http.post({
        url: serviceName + "GetSupplierOffer?supplierId=" + supplierId,
    })
}

// 获取商品分类列表
export function GetSupplierTypeTreeList(data) {
    return http.post({
        url: serviceName + "GetSupplierTypeTreeList",
        data: data,
    })
}
// 获取商品详情接口
export function GetProductDetail(data) {
    return http.post({
        url: serviceName + "GetProductDetail",
        data: data,
    })
}
